Dart.Ftp Namespace > TcpBase Class > Read Method : Read(Byte[],Int32,Int32) Method |
Public Overloads Function Read( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) As Data
This method performs a single socket read, blocking until at least one byte is read, up to as much data as is available on the socket, count bytes, or buffer.Length, whichever is lowest. A SocketException indicating SocketError.Timeout will not result in the socket being closed; other SocketExceptions are fatal and the socket is automatically closed by the class.
The ReceiveTimeout property controls how long this method will block before throwing a Timeout exception.